home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12990 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  973 b 

  1. Path: anvil.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Need help with a STRING that won't go away!!!
  5. Date: 3 Apr 1996 12:47:17 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4juo4lINNifu@anvil.ugrad.cs.ubc.ca>
  8. References: <4jh7e2$jjr@abel.cc.sunysb.edu> <828377318snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
  10.  
  11. In article <828377318snz@genesis.demon.co.uk>,
  12. Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
  13.  >> while(!feof(sourcefp))
  14.  >> {
  15.  >>           if (ferror(sourcefp))
  16.  >>           {
  17.  >>                   printf("\nError while reading source file.\n");
  18.  >>                   exit(1);
  19.  >>           }
  20.  >>           fgets(line,linemax,sourcefp);        /* Get Bad Record */
  21.  >
  22.  >The system isn't prescient - feof() and ferror() test whether the last
  23.                    ^^^^^^^^^
  24.  
  25. That is just too damn English! I love it!
  26. -- 
  27.  
  28.